
// <copyright file="ValueTypeDefaultCheckHelper.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   This class has some helper methods that will be called by DynamicObjectEmptyCheckHelper.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Reflection.Internal
{
    /// <summary>
    /// This class has some helper methods that will be called by DynamicObjectEmptyCheckHelper.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    internal class ValueTypeDefaultCheckHelper<T>
    {
        #region Methods

        /// <summary>
        /// Determines whether the specified value1 is default.
        /// </summary>
        /// <param name="value1">
        /// The value1.
        /// </param>
        /// <returns>
        /// <c>true</c> if the specified value1 is default; otherwise, <c>false</c>.
        /// </returns>
        internal static bool IsDefault(T value1)
        {
            return Equals(value1, default(T));
        }

        #endregion Methods
    }
}
